package parser.domain;

public class Relation {
    private String sourceClass;
    private String destinationClass;
    private String relationType;

    public Relation() {
    }

    public Relation(String sourceClass, String destinationClass, String relationType) {
        this.sourceClass = sourceClass;
        this.destinationClass = destinationClass;
        this.relationType = relationType;
    }

    public String getSourceClass() {
        return sourceClass;
    }

    public void setSourceClass(String sourceClass) {
        this.sourceClass = sourceClass;
    }

    public String getDestinationClass() {
        return destinationClass;
    }

    public void setDestinationClass(String destinationClass) {
        this.destinationClass = destinationClass;
    }

    public String getRelationType() {
        return relationType;
    }

    public void setRelationType(String relationType) {
        this.relationType = relationType;
    }

    @Override
    public String toString() {
        return "Result{" +
                "sourceClass='" + sourceClass + '\'' +
                ", destinationClass='" + destinationClass + '\'' +
                ", relationType='" + relationType + '\'' +
                '}';
    }
}
